﻿@model kxcxw.Data.Entities.AnnouncementInfo
@{
    ViewBag.Title = "添加公告";
    Layout = "~/Areas/Admin/Views/Shared/_InfoLayout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<h2>
    @Html.ActionLink("用户管理", "Index") &raquo; @Html.ActionLink("添加公告", "Create", null, new { @class = "active" })
</h2>
<div id="main">
    @using (Html.BeginForm("Create", "AnnouncementInfo", FormMethod.Post, new { name = "jNice", @class = "jNice" }))
    {
        @Html.ValidationSummary(true)
        <fieldset>
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.ItemID)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.ItemID, (SelectList)ViewBag.itemTypelist)
                </div>
            </div>
            <div class="field" style="height:auto;">
                <div class="editor-label">
                    @Html.LabelFor(model => model.AnnouncementContent)
                </div>
                <div class="editor-field-long">
                    @Html.TextAreaFor(model => model.AnnouncementContent)
                    @Html.ValidationMessageFor(model => model.AnnouncementContent)
                </div>
            </div>
            <p>
                <input type="submit" value="创建公告" />
            </p>
        </fieldset>
    }
</div>
